<div>
  <?php
    //Cart Information
  $cartData = isset($_SESSION['shoppingCart']) ? unserialize($_SESSION['shoppingCart']) : null;
  if(!empty($cartData) && $cartData->getCartItems()>0) {
    echo "<div class='center'><a href='cart.php' title='View contents of your shopping cart' ><img class='cartLink' src='img/cart.jpg'/></a><p><a href='cart.php'>".$cartData->getNumberOfProducts()." item(s) in your cart</a></p><p> <a href='cart.php?action=empty' title='Empty your shopping cart'>Empty cart</a>  </p></div>";
  }
  ?>
  <h2>Categories</h2>
  <?php
    if (sizeof($categoryCounts)>0) {
      echo "<ul>";
      foreach ($categoryCounts as $category) {
        echo "<li><a href='index.php?category=".$category["CategoryId"]."'>".$category['Category']." (".$category['Count'].")</a></li>";
      }
      echo "</ul>";
    } else {
      echo "No products are currently available";
    }
  ?>
</div>